package com.wlc.io;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

public class io {
	public static void main(String[] args) {
		File file=new File("Sourse\\1.txt");
		try {
			InputStream is=new FileInputStream(file);
			OutputStream os=new FileOutputStream("Sourse\\2.txt");
			byte[] b=new byte[100];
				while(is.read(b)!=-1)
				{
					os.write(b);
				}
			} catch (IOException e) {
				
				e.printStackTrace();
			}
	
}
}
